package ${model.packageName};

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.beans.factory.annotation.Qualifier;
import org.springframework.orm.hibernate3.HibernateTemplate;
import org.springframework.stereotype.Repository;
import cn.framework.dao.*;
import cn.framework.dao.impl.*;

<#list model.importList as import>
import ${import};	
</#list>


@Repository
public class ${model.className} extends BaseHibernateDaoImpl<${model.changeClass}> implements ${model.implementName} {
 
 	<#if model.defaultHibernateTemplate==false>
 	@Autowired
	@Qualifier("${model.targetHibernateTemplate}")HibernateTemplate targetHibernateTemplate;
 	</#if>
 	
 	<#if model.defaultHibernateTemplate==false>
 	@Override
	public void initHibernateTemplate() {
	<#if model.defaultHibernateTemplate==false>
		super.setHibernateTemplate(targetHibernateTemplate);
	</#if>
	}
	</#if>
}
